From a2395e7a49640a334b9d05d746734635890ccd0b Mon Sep 17 00:00:00 2001 From: Jimi Xenidis Date: Tue, 22 Aug 2006 11:16:01 -0400 Subject: [PATCH] [POWERPC] Take all secondary processors offline after they are enumerated Xen assumes that an online CPU is a schedualable CPU, but we just are not there yet. Remove this fragment when scheduling processors actually works. Signed-off-by: Jimi Xenidis Signed-off-by: Hollis Blanchard --- xen/arch/powerpc/setup.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/xen/arch/powerpc/setup.c b/xen/arch/powerpc/setup.c index cdc2173229..15398309f3 100644 --- a/xen/arch/powerpc/setup.c +++ b/xen/arch/powerpc/setup.c @@ -181,6 +181,21 @@ static void __init start_of_day(void) percpu_free_unused_areas(); + { + /* FIXME: Xen assumes that an online CPU is a schedualable + * CPU, but we just are not there yet. Remove this fragment when + * scheduling processors actually works. */ + int cpuid; + + printk("WARNING!: Taking all secondary CPUs offline\n"); + + for_each_online_cpu(cpuid) { + if (cpuid == 0) + continue; + cpu_clear(cpuid, cpu_online_map); + } + } + initialize_keytable(); /* Register another key that will allow for the the Harware Probe * to be contacted, this works with RiscWatch probes and should -- 2.30.2